package com.medical.app.service;

import com.medical.app.entity.MedicalRecord;
import java.util.List;
import java.util.Optional;

public interface MedicalRecordService {
    List<MedicalRecord> getUserRecords(Long userId);
    MedicalRecord saveRecord(MedicalRecord record);
    MedicalRecord updateRecord(Long id, MedicalRecord record); // 新增更新方法
    void deleteRecord(Long id);
    Optional<MedicalRecord> findById(Long id);
    long getRecordCount(Long userId);
}